package com.zyl.longpicturebackend;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.zyl.longpicturebackend.mapper")
public class LongPictureBackendApplication {

    public static void main(String[] args) {
        SpringApplication.run(LongPictureBackendApplication.class, args);
    }
//    @Bean
//    UndertowServletWebServerFactory undertowServletWebServerFactory() {
//
//        UndertowServletWebServerFactory factory = new UndertowServletWebServerFactory();
//
//        factory.addAdditionalTomcatConnectors();
//        factory.addAdditionalTomcatConnectors(createTomcatConnector());
//        return factory;
//    }
}
